package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the category database table.
 * 
 */
@Entity
public class Category implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int categoryid;

	private String categoryname;

	//bi-directional many-to-one association to CateTarget
	@OneToMany(mappedBy="category")
	private Set<CateTarget> cateTargets;

    public Category() {
    }

	public int getCategoryid() {
		return this.categoryid;
	}

	public void setCategoryid(int categoryid) {
		this.categoryid = categoryid;
	}

	public String getCategoryname() {
		return this.categoryname;
	}

	public void setCategoryname(String categoryname) {
		this.categoryname = categoryname;
	}

	public Set<CateTarget> getCateTargets() {
		return this.cateTargets;
	}

	public void setCateTargets(Set<CateTarget> cateTargets) {
		this.cateTargets = cateTargets;
	}
	
}